package com.xy.common.util;

import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Service;

import com.xy.core.model.Tdictionarytype;
import com.xy.core.model.Tdictionay;
import com.xy.core.service.TdictionarytypeService;
import com.xy.core.service.TdictionayService;
import com.xy.core.util.SpringBeanUtils;
import com.xy.manage.model.Trequest;
import com.xy.manage.service.TrequestService;
import com.xy.servicemanage.action.QueryThread;
import com.xy.servicemanage.model.ServiceSetting;
import com.xy.servicemanage.utils.RequestScaner;

public class InitDictData implements InitializingBean {
	@Override
	public void afterPropertiesSet() throws Exception {
		List<Tdictionay> l = ((TdictionayService) SpringBeanUtils
				.getBean("tdictionayService")).getAll();
		DictUtils.init(l);
		List<Tdictionarytype> l1 = ((TdictionarytypeService) SpringBeanUtils
				.getBean("tdictionarytypeService")).getAll();
		DictUtils.addDictType(l1);
		ServiceSetting.getInstance();
		//
//        new RequestScaner().start();
	}

	 
}
